var table;
var element;
var $;
layui.use(['table','element',],function(){
    table=layui.table;
    element=layui.element;
    $=layui.jquery;


    $("#queId").on("click",function(){
        var Id=$("#ForumMId").val();
        var detaId= $('input[name="sex"]:checked').val();
        var title= $("#textName").val();
        $.ajax({
            url:"/SyteacherSelController/updateForum",
            type:"post",
            dataType:"json",
            data:{"detaId":detaId,"id":Id},
            success:function(data){
                if(data.code==0){
                    parent.location.reload()
                }else{
                    layer.msg("审核失败", {icon: 5});
                }
            }

        })
    })

    $("#quexiaoId").on("click",function(){
        window.parent.location.reload();
    })
})